<?php
/**
 * Clase FN para SoDeliveryFN
 *
 * @package    
 * @subpackage SoDeliveryFN
 * @author     hans
 * @version    SVN:: SoDeliveryFN.class.php,v 1.1 2012-05-01 22:34:07 Hans.parra Exp $
 */

require_once('class/common/conexion.php');
require_once('class/im/dlv/BFN/BaseSoDeliveryFN.class.php');
require_once('class/im/dlv/FN/SoDeliveryLineaFN.class.php');

class SoDeliveryFN extends BaseSoDeliveryFN
{
  public function getSoDelivery()
  {
  
    $o_SoDeliveryBN = $this->selectByPK();
    
    $o_SoDeliveryLineaFN = new SoDeliveryLineaFN();
    $o_SoDeliveryLineaFN->setDlvId($this->getId());    
    $o_SoDeliveryLineaBN =  $o_SoDeliveryLineaFN->selectSoDeliveryItemDetalle();
    
    $o_SoDeliveryBN->setObj_SoDeliveryLinea($o_SoDeliveryLineaBN);
    
    return $o_SoDeliveryBN;
  
  }

}